package com.gxa.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data

@TableName("emp")
@ApiModel("员工表实体类")
public class Emp {
    @ApiModelProperty("员工编号")
    private Integer eid;

    @ApiModelProperty("员工姓名")
    private String ename;

    @ApiModelProperty("员工账号")
    private String account;

    @ApiModelProperty("所在部门")
    private String department;

    @ApiModelProperty("手机号")
    private String tel;

    @ApiModelProperty("员工状态 1为在职 0为离职" )
    private Integer status;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("直属上级")
    private String mgr;

    @ApiModelProperty("公司id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty("用户id")
    private User user;

    @ApiModelProperty("岗位引用")
    private Company company;

}


